export default {
	namespaced: true,
	
	state:{
		systemInfo: uni.getStorageSync("system_systemInfo") || null,    // 系统信息
		rect: uni.getStorageSync("system_rect") || null,    // 胶囊信息
		navBarHeight: uni.getStorageSync("system_navBarHeihgt") || null,    // 导航栏高度
	},
	
	mutations: {
		// 设置-系统信息
		["SET_SYSTEMINFO"] (state, payload){ state.systemInfo = payload; uni.setStorageSync("system_systemInfo", payload) },
		// 设置-胶囊信息
		["SET_RECT"] (state, payload){ state.rect = payload; uni.setStorageSync("system_rect", payload) },
		// 设置-导航栏高度
		["SET_NAVBARHEIGHT"] (state, payload){ state.navBarHeight = payload; uni.setStorageSync("system_navBarHeihgt", payload) },
	}
}